from Page import Page
import unittest
from selenium import webdriver
from time import sleep

class MyTestCase(unittest.TestCase):

    def setUp(self) -> None:
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self) -> None:
        self.driver.quit()

    def test_01(self):
        po=Page(self.driver)
        po.open_url('http://localhost:8080/login')
        sleep(2)
        po.usernameSR()
        sleep(2)
        po.passwordSR()
        sleep(2)
        po.loginDJ()
        sleep(10)

if __name__ == '__main__':
    unittest.main()
